<%@page import="domain.service.Utils"%>
<%@page import="java.util.List"%>
<%@page import="domain.model.Domain"%>
<%@page import="javax.jdo.Query"%>
<%@page import="domain.data.QnAPersistenceManager"%>
<%@page import="javax.jdo.PersistenceManager"%>
<%
PersistenceManager psm = QnAPersistenceManager.get().getPersistenceManager();
Query query = psm.newQuery(Domain.class);
query.setFilter("lastUpdateDate != null");
query.setOrdering("lastUpdateDate DESC");
query.setRange(0,15);
List<Domain> listDomain = (List<Domain>) query.execute();
%>

<hr size="1" class="hr"/>
<h2 class="menu">New sites</h2>
<ul class="featured">
	<%
	for(int i=0;i<listDomain.size();i++)
	{
	%>
		<li><a href="/domain/<%=listDomain.get(i).getName() %>" title="<%=listDomain.get(i).getName() %>"><%=Utils.cutString(listDomain.get(i).getName(),20) %></a></li>
	<%
	}
	%>
</ul>